import {
  SET_COMMON_PROPS_PENDING,
  SET_COMMON_PROPS_SUCCESS,
  SET_COMMON_PROPS_ERROR,
  REMOVE_COMMON_SUCCESS,
} from '../actions/application';

const initialState = {
  
};

export default function commonProps(state = initialState, action = {}) {
  switch (action.type) {
    case SET_COMMON_PROPS_PENDING:
      return Object.assign({}, initialState, {});
    case SET_COMMON_PROPS_SUCCESS:
      let objAry = new Array();

      objAry[action.payload.key] = action.payload.value;
      return {
        ...state,
        ...objAry
      };
    case SET_COMMON_PROPS_ERROR:
      return {
        ...state,
        setCommonError: {},
      };
    case REMOVE_COMMON_SUCCESS:
      return {
        
      }
    default:
      return state;
  }
}
